<?php 
require_once '../model/moduleuser.php';
require_once '../model/background_images.php';

$moduleObj = new Model_ModuleUser();
$imageObj  = new Model_Background_Images();



$imageId = base64_decode($_GET['id']);

//Get image details
$newimageDetails = $imageObj->getImageDetails($imageId);
$smarty->assign('newimageDetails', $newimageDetails);

## Assign success or error msg to smarty variable and unset session variable
if(isset($_SESSION['msg']) && $_SESSION['msg']!= '') {
	$smarty->assign('msg', $_SESSION['msg']);
	unset($_SESSION['msg']);
}
$smarty->assign('activeclass', 'manageimages');
$smarty->assign('mainmenu', '5');

$smarty->display(TEMPLATEDIR_ADMIN. 'settings/image_details.tpl');
unset($smarty);
?>